package com.qf.service;

import com.qf.entity.Users;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface UsersService{
    public Users insertUsers(Users users);
    public Users login(String username,String password);
    //区间
    public List<Users> findByBirthdayBetween(String begin, String end);
    //模糊查
    public List<Users> findByUsernameLike(String name);
    public List<Users> findByUserIdIn(List list, Sort sort);
    public int countByUsernameContaining(String name);
    //分页
    public Page findByUsernameLike(String name, Pageable pageable);
}
